package com.tbit.uqbike.client.service;

import com.tbit.uqbike.client.pojo.Result;
import com.tbit.uqbike.client.pojo.RideLogDetails;

import java.util.List;

/**
 * 骑行订单详情
 *
 * @Author:BUGTian
 * @DATE: 2023/5/22
 */
public interface RideLogDetailsService {

    /**
     * 根据订单号查询
     *
     * @param orderNO
     * @return
     */
    Result<RideLogDetails> queryByOrderId(String orderNO);

    /**
     * 根据用户查询
     *
     * @param userId
     * @return
     */
    Result<List<RideLogDetails>> list(Integer userId);

    /**
     * @description: 获取最近的指定条数的订单
     * @author: mo.shanyong
     * @date: 2025/5/13 15:10
     * @param: machineId 车辆id
     * @param: limit 限制条数
     * @return: java.util.List<com.tbit.uqbike.client.pojo.RideLogDetails>
     */
    List<RideLogDetails> getLastLimitByMachineId(Integer machineId,Integer limit);
}
